package dragonantithesis.dragonantithesis;


import io.lumine.xikage.mythicmobs.api.bukkit.events.MythicMechanicLoadEvent;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;

public class MythicMobsEventRegister implements Listener{
    public MythicMobsEventRegister(DragonAntiThesis plugin) {
        plugin.getServer().getPluginManager().registerEvents(this, plugin);
    }
    @EventHandler
    public void onMythicMobsLoadMechanics(MythicMechanicLoadEvent e) {
        String s1 = e.getMechanicName().toLowerCase();
        //绑定模型ID
        if (s1.equals("model")){
            e.register(new MythicmobsModelSet(e.getContainer().getConfigLine(), e.getConfig())); }
        //模型动画
        else if (s1.equals("state")){
            e.register(new MythicmobsModelAnimation(e.getContainer().getConfigLine(), e.getConfig()));}
    }



}
